// import types from '../reducersTypes'
import {UPDATE_MSG} from '../reducersTypes'
const initState = {
  msg: 'redux 的使用'
}

export default (state = initState, action) => {
  let newState = {...state}
  switch (action.type) {
    case UPDATE_MSG:
      newState.msg = action.payload
      break;
  
    default:
      break;
  }
  return newState
}